package cn.com.sbell.vss.csg.vsclient;


public class AccessInfo{
	
    public String vsIp;
    public Integer vsPort;
    public String vsLoginUsername;
    public String vsLoginPassword;
    public String vsVendor;
    public String vsProductVersion;
    public String vsSoftwareVersion;
    public String userId;
    public String vsDeviceId;
    public String frontType;
    
    public String getVsDeviceId() {
		return vsDeviceId;
	}
	public void setVsDeviceId(String vsDeviceId) {
		this.vsDeviceId = vsDeviceId;
	}
	public String getVsIp() {
        return vsIp;
    }
    public void setVsIp(String vsIp) {
        this.vsIp = vsIp;
    }
    public String getVsLoginPassword() {
        return vsLoginPassword;
    }
    public void setVsLoginPassword(String vsLoginPassword) {
        this.vsLoginPassword = vsLoginPassword;
    }
    public String getVsLoginUsername() {
        return vsLoginUsername;
    }
    public void setVsLoginUsername(String vsLoginUsername) {
        this.vsLoginUsername = vsLoginUsername;
    }
    public Integer getVsPort() {
        return vsPort;
    }
    public void setVsPort(Integer vsPort) {
        this.vsPort = vsPort;
    }
    public String getVsProductVersion() {
        return vsProductVersion;
    }
    public void setVsProductVersion(String vsProductVersion) {
        this.vsProductVersion = vsProductVersion;
    }
    public String getVsSoftwareVersion() {
        return vsSoftwareVersion;
    }
    public void setVsSoftwareVersion(String vsSoftwareVersion) {
        this.vsSoftwareVersion = vsSoftwareVersion;
    }
    public String getVsVendor() {
        return vsVendor;
    }
    public void setVsVendor(String vsVendor) {
        this.vsVendor = vsVendor;
    }
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getFrontType() {
		return frontType;
	}
	public void setFrontType(String frontType) {
		this.frontType = frontType;
	}
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("vsIp = " + this.vsIp + "\n");
		sb.append("vsPort = " + this.vsPort + "\n");
		sb.append("vsLoginUsername = " + this.vsLoginUsername + "\n");
		sb.append("vsLoginPassword = " + this.vsLoginPassword + "\n");
		sb.append("vsVendor = " + this.vsVendor + "\n");
		sb.append("vsProductVersion = " + this.vsProductVersion + "\n");
		sb.append("vsSfotwareVersion = " + this.vsSoftwareVersion + "\n");
		sb.append("vsDeviceId = "+ this.vsDeviceId+"\n");
//		sb.append("userId = " + this.userId + "\n");
		
		return sb.toString();
	}
	public boolean equals(Object obj){
		if(obj == null){
			return false;
		}
		if(this == obj){
			return true;
		}
		if(obj instanceof AccessInfo){
			AccessInfo accessInfo = (AccessInfo)obj;
			return (this.vsIp == null? accessInfo.vsIp == null:vsIp.equals(accessInfo.vsIp)) 
					&& (this.vsPort == null? accessInfo.vsPort == null:vsPort.equals(accessInfo.vsPort))
					&& (this.vsLoginUsername == null? accessInfo.vsLoginUsername == null:vsLoginUsername.equals(accessInfo.vsLoginUsername))
					&& (this.vsLoginPassword == null? accessInfo.vsLoginPassword == null:vsLoginPassword.equals(accessInfo.vsLoginPassword))
					&& (this.vsVendor == null? accessInfo.vsVendor == null:vsVendor.equals(accessInfo.vsVendor))
					&& (this.vsProductVersion == null? accessInfo.vsProductVersion == null:vsProductVersion.equals(accessInfo.vsProductVersion))
					&& (this.vsSoftwareVersion == null? accessInfo.vsSoftwareVersion == null:vsSoftwareVersion.equals(accessInfo.vsSoftwareVersion))
					&& (this.vsDeviceId == null? accessInfo.vsDeviceId == null: vsDeviceId.equals(accessInfo.vsDeviceId));
		}
		return false;
	}
	public int hashCode(){
		return toString().hashCode();
	}
}

